\<%@ page pageEncoding="UTF-8"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
\<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
\<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<div class="show-info">
    <table class="tab-show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
	<% for ( fieldModel in fieldList ) { %>
        <tr>
        <% //id不输出 %>
		<% if ( strutil.toLowerCase(fieldModel.fieldName)  == "id" ) { %>
		<% } else { %>
	    	<th>
            	<label>${fieldModel.comments}：</label>
        	</th>
        <% } %>
        <% //id不输出 %>
		<% if ( strutil.toLowerCase(fieldModel.fieldName) == "id" ) { %>
        <% //state用标签输出 %>
		<% } else if ( fieldModel.fieldName == "state"  ) { %>
			<td><shield:switchOput data="-1=删除|正常" value="\${model.state}"></shield:switchOput></td>
		<% } else { %>
         	<td>\${model.${fieldModel.fieldName} }</td>
        <% } %>
		</tr>
	<% } %>
    </table>
    <div class="opt"></div>
</div>